package com.bp.flowable.service.impl;

import com.bp.flowable.domain.FlowableForm;
import com.bp.flowable.mapper.FlowableFormMapper;
import com.bp.flowable.service.IFlowableFormService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 流程Service
 *
 * @author shaominjie
 */
@Service
public class FlowableFormServiceImpl implements IFlowableFormService {

    @Resource
    private FlowableFormMapper flowableFormMapper;

    @Override
    public FlowableForm selectById(String formKeyDefinition) {
        return flowableFormMapper.selectById(formKeyDefinition);
    }

    @Override
    public List<FlowableForm> selectList(FlowableForm flowableForm) {
        return flowableFormMapper.selectList(flowableForm);
    }

    @Override
    public int insert(FlowableForm flowableForm) {
        return flowableFormMapper.insert(flowableForm);
    }

    @Override
    public int update(FlowableForm flowableForm) {
        return flowableFormMapper.update(flowableForm);
    }

    @Override
    public int deleteByIds(String[] ids) {
        return flowableFormMapper.deleteByIds(ids);
    }

    @Override
    public int deleteById(String id) {
        return flowableFormMapper.deleteById(id);
    }
}
